package com.mrs.gauss.service.dao;

import com.mrs.gauss.model.entity.MrsUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Set;

/**
 * Created by hecq on 2024-12-24.
 *
 * @author hecq
 * @version 0.0.1
 * @date 2024-12-24
 * @since 0.0.1
 */
@Mapper
@Component
public interface MrsUserDao {
    int add(MrsUser MrsUser);

    int update(MrsUser MrsUser);

    int delete(Long id);

//    List<MrsUser> getUserList(String id,String userAccount, String planetCode, String planet,String email,String userStatus,String userRole);
    List<MrsUser> getUserList();

    MrsUser getUserListOne(String userAccount, String userPassword);

    MrsUser getUserAcc(String userAccount);

    MrsUser getUserPlanetCo(String userAccount);

    MrsUser getLoginUser(HttpServletRequest request);

    MrsUser deleteListOne(Long userId, String userAccount);
    List<MrsUser>  userList(Set<Long> userId);

}
